package com.lagou.nettyspringboot.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: yx
 * @date: 2021/11/16 10:27
 */
@Component
@ConfigurationProperties(prefix = "netty")
@Data
public class NettyConfig {

    //netty监听的端口
    private Integer port;

    //websocket的访问路径
    private String path;
}
